import request from '@/utils/request'

const api_name = '/manager/video'

export default{
    saveVideoInfo(videoInfo){
        return request({
            url: `${api_name}/addVideo`,
            method: 'post',
            data: videoInfo
        })
    },

    getVideoInfoById(id){
        return request({
            url: `${api_name}/${id}`,
            method: 'GET'
        })
    },

    updateVideoInfoById(videoInfo){
        return request({
            url: `${api_name}/${videoInfo.id}`,
            method: 'put',
            data: videoInfo
        })
    },

    removeById(id){
        return request({
            url: `${api_name}/${id}`
        })
    }
}
